Optimal. Leaf size=796 \[ -\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {(3-2 x)^2} \sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2}}{2 \sqrt [3]{2} (3-2 x) \sqrt [3]{1-x} \sqrt [3]{2-x} \left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}\right )}{4 \sqrt [3]{2}}+\frac {\sqrt [4]{3} \sqrt {2-\sqrt {3}} \sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2} \left (1+2^{2/3} \sqrt [3]{2-3 x+x^2}\right ) \sqrt {\frac {1-2^{2/3} \sqrt [3]{2-3 x+x^2}+2 \sqrt [3]{2} \left (2-3 x+x^2\right )^{2/3}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}{1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}\right )|-7-4 \sqrt {3}\right )}{4 \sqrt [3]{2} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {1+2^{2/3} \sqrt [3]{2-3 x+x^2}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}}}-\frac {\sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2} \left (1+2^{2/3} \sqrt [3]{2-3 x+x^2}\right ) \sqrt {\frac {1-2^{2/3} \sqrt [3]{2-3 x+x^2}+2 \sqrt [3]{2} \left (2-3 x+x^2\right )^{2/3}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}{1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}\right )|-7-4 \sqrt {3}\right )}{2^{5/6} \sqrt [4]{3} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {1+2^{2/3} \sqrt [3]{2-3 x+x^2}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}}}+\frac {3 \log \left (-\sqrt [3]{1-x}+\frac {(2-x)^{2/3}}{2^{2/3}}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 796, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {125, 163, 63,
637, 309, 224, 1891, 124} \begin {gather*} -\frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}+\frac {1}{\sqrt {3}}\right )}{4 \sqrt [3]{2}}+\frac {\sqrt [4]{3} \sqrt {2-\sqrt {3}} \sqrt {(2 x-3)^2} \sqrt [3]{x^2-3 x+2} \left (2^{2/3} \sqrt [3]{x^2-3 x+2}+1\right ) \sqrt {\frac {2 \sqrt [3]{2} \left (x^2-3 x+2\right )^{2/3}-2^{2/3} \sqrt [3]{x^2-3 x+2}+1}{\left (2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1\right )^2}} E\left (\text {ArcSin}\left (\frac {2^{2/3} \sqrt [3]{x^2-3 x+2}-\sqrt {3}+1}{2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1}\right )|-7-4 \sqrt {3}\right )}{4 \sqrt [3]{2} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {2^{2/3} \sqrt [3]{x^2-3 x+2}+1}{\left (2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1\right )^2}}}-\frac {\sqrt {(2 x-3)^2} \sqrt [3]{x^2-3 x+2} \left (2^{2/3} \sqrt [3]{x^2-3 x+2}+1\right ) \sqrt {\frac {2 \sqrt [3]{2} \left (x^2-3 x+2\right )^{2/3}-2^{2/3} \sqrt [3]{x^2-3 x+2}+1}{\left (2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1\right )^2}} F\left (\text {ArcSin}\left (\frac {2^{2/3} \sqrt [3]{x^2-3 x+2}-\sqrt {3}+1}{2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1}\right )|-7-4 \sqrt {3}\right )}{2^{5/6} \sqrt [4]{3} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {2^{2/3} \sqrt [3]{x^2-3 x+2}+1}{\left (2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1\right )^2}}}+\frac {3 \log \left (\frac {(2-x)^{2/3}}{2^{2/3}}-\sqrt [3]{1-x}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}}-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {(3-2 x)^2} \sqrt {(2 x-3)^2} \sqrt [3]{x^2-3 x+2}}{2 \sqrt [3]{2} (3-2 x) \sqrt [3]{1-x} \sqrt [3]{2-x} \left (2^{2/3} \sqrt [3]{x^2-3 x+2}+\sqrt {3}+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 124
Rule 125
Rule 163
Rule 224
Rule 309
Rule 637
Rule 1891
Rubi steps
\begin {align*} \int \frac {1}{\sqrt [3]{1-x} \sqrt [3]{2-x} x^2} \, dx &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}+\frac {1}{12} \int \frac {6+2 x}{\sqrt [3]{1-x} \sqrt [3]{2-x} x} \, dx\\ &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}+\frac {1}{6} \int \frac {1}{\sqrt [3]{1-x} \sqrt [3]{2-x}} \, dx+\frac {1}{2} \int \frac {1}{\sqrt [3]{1-x} \sqrt [3]{2-x} x} \, dx\\ &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}\right )}{4 \sqrt [3]{2}}+\frac {3 \log \left (-\sqrt [3]{1-x}+\frac {(2-x)^{2/3}}{2^{2/3}}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}}+\frac {\sqrt [3]{2-3 x+x^2} \int \frac {1}{\sqrt [3]{2-3 x+x^2}} \, dx}{6 \sqrt [3]{1-x} \sqrt [3]{2-x}}\\ &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}\right )}{4 \sqrt [3]{2}}+\frac {3 \log \left (-\sqrt [3]{1-x}+\frac {(2-x)^{2/3}}{2^{2/3}}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}}+\frac {\left (\sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2}\right ) \text {Subst}\left (\int \frac {x}{\sqrt {1+4 x^3}} \, dx,x,\sqrt [3]{2-3 x+x^2}\right )}{2 \sqrt [3]{1-x} \sqrt [3]{2-x} (-3+2 x)}\\ &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}\right )}{4 \sqrt [3]{2}}+\frac {3 \log \left (-\sqrt [3]{1-x}+\frac {(2-x)^{2/3}}{2^{2/3}}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}}+\frac {\left (\sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2}\right ) \text {Subst}\left (\int \frac {1-\sqrt {3}+2^{2/3} x}{\sqrt {1+4 x^3}} \, dx,x,\sqrt [3]{2-3 x+x^2}\right )}{2\ 2^{2/3} \sqrt [3]{1-x} \sqrt [3]{2-x} (-3+2 x)}+\frac {\left (\sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+4 x^3}} \, dx,x,\sqrt [3]{2-3 x+x^2}\right )}{2 \sqrt [6]{2} \sqrt {2+\sqrt {3}} \sqrt [3]{1-x} \sqrt [3]{2-x} (-3+2 x)}\\ &=-\frac {(1-x)^{2/3} (2-x)^{2/3}}{2 x}-\frac {\sqrt {(3-2 x)^2} \sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2}}{2 \sqrt [3]{2} (3-2 x) \sqrt [3]{1-x} \sqrt [3]{2-x} \left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)^{2/3}}{\sqrt {3} \sqrt [3]{1-x}}\right )}{4 \sqrt [3]{2}}+\frac {\sqrt [4]{3} \sqrt {2-\sqrt {3}} \sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2} \left (1+2^{2/3} \sqrt [3]{2-3 x+x^2}\right ) \sqrt {\frac {1-2^{2/3} \sqrt [3]{2-3 x+x^2}+2 \sqrt [3]{2} \left (2-3 x+x^2\right )^{2/3}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}{1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}\right )|-7-4 \sqrt {3}\right )}{4 \sqrt [3]{2} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {1+2^{2/3} \sqrt [3]{2-3 x+x^2}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}}}-\frac {\sqrt {(-3+2 x)^2} \sqrt [3]{2-3 x+x^2} \left (1+2^{2/3} \sqrt [3]{2-3 x+x^2}\right ) \sqrt {\frac {1-2^{2/3} \sqrt [3]{2-3 x+x^2}+2 \sqrt [3]{2} \left (2-3 x+x^2\right )^{2/3}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}{1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}}\right )|-7-4 \sqrt {3}\right )}{2^{5/6} \sqrt [4]{3} (3-2 x) \sqrt {(3-2 x)^2} \sqrt [3]{1-x} \sqrt [3]{2-x} \sqrt {\frac {1+2^{2/3} \sqrt [3]{2-3 x+x^2}}{\left (1+\sqrt {3}+2^{2/3} \sqrt [3]{2-3 x+x^2}\right )^2}}}+\frac {3 \log \left (-\sqrt [3]{1-x}+\frac {(2-x)^{2/3}}{2^{2/3}}\right )}{8 \sqrt [3]{2}}-\frac {\log (x)}{4 \sqrt [3]{2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 4 in
optimal.
time = 30.07, size = 74, normalized size = 0.09 \begin {gather*} -\frac {(1-x)^{2/3} \left (5 (2-x)^{2/3}+10 x F_1\left (\frac {2}{3};\frac {1}{3},1;\frac {5}{3};-1+x,1-x\right )+(-1+x) x F_1\left (\frac {5}{3};\frac {1}{3},1;\frac {8}{3};-1+x,1-x\right )\right )}{10 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (1-x \right )^{\frac {1}{3}} \left (2-x \right )^{\frac {1}{3}} x^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{2} \sqrt [3]{1 - x} \sqrt [3]{2 - x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{x^2\,{\left (1-x\right )}^{1/3}\,{\left (2-x\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________